//
//  MNDInvestFailedViewController.m
//  minidai
//
//  Created by 谭谭伟 on 17/5/23.
//  Copyright © 2017年 迷你金服. All rights reserved.
//

#import "MNDInvestFailedViewController.h"
#import "MNDInvestmentRecordViewController.h"
#import "MNDLoginUserModel.h"
@interface MNDInvestFailedViewController ()
@property (weak, nonatomic) IBOutlet UIButton *checkInvestDetaiButton;

@end

@implementation MNDInvestFailedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    // Do any additional setup after loading the view.
}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}
- (void)setupUI {
    self.checkInvestDetaiButton.layer.cornerRadius = 5.0;
    self.checkInvestDetaiButton.clipsToBounds  = YES;
    self.checkInvestDetaiButton.layer.borderWidth = 1;
    self.checkInvestDetaiButton.layer.borderColor = [UIColor orangeColor].CGColor;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


//查看投资记录
- (IBAction)checkINvestDetailAction:(UIButton *)sender {
    UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"InvestmentRecord" bundle:nil];
    MNDInvestmentRecordViewController *investDetailVC = [storyBoard instantiateViewControllerWithIdentifier:[MNDInvestmentRecordViewController description]];
    investDetailVC.shouldCustomBack = YES;
    [self.navigationController pushViewController:investDetailVC animated:YES];

}

//继续投资
- (IBAction)continueInvesAction:(UIButton *)sender {
    [self.navigationController popToRootViewControllerAnimated:YES];
    self.tabBarController.selectedIndex = 1;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
